package com.jcl.recruit.elasticsearch.resume.dao;

import com.jcl.recruit.elasticsearch.mapper.ResumeExternalMsgMapper;
import com.jcl.recruit.elasticsearch.resume.model.ResumeExternalMsg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @ClassName ResumeExternalMsgDao
 * @Author yyliu
 * @Date 2018/10/15 14:05
 * @Version 1.0
 **/
@Component
public class ResumeExternalMsgDao implements ResumeExternalMsgMapper {

    @Autowired
    private ResumeExternalMsgMapper resumeExternalMsgMapper;

    @Override
    public List<ResumeExternalMsg> findListByType(Integer type) {
        return resumeExternalMsgMapper.findListByType(type);
    }

    @Override
    public List<ResumeExternalMsg> findListByResumeIds(List<Integer> resumeIds, Integer type) {
        return resumeExternalMsgMapper.findListByResumeIds(resumeIds, type);
    }

    @Override
    public List<ResumeExternalMsg> findListByResumeId(int resumeId, Integer type) {
        return resumeExternalMsgMapper.findListByResumeId(resumeId, type);
    }

    @Override
    public int add(ResumeExternalMsg resumeExternalMsg) {
        return resumeExternalMsgMapper.add(resumeExternalMsg);
    }
}
